<?php
/*
Template Name: No Sidebar
*/
?>

<?php get_header(); ?>
<div id="content">
	<?php if (wpboxes_options('wpboxes_tw') == 'show') { ?>
		<div id="top-widget">
			<?php if ( dynamic_sidebar('top-widget') ) : else : ?>
			<?php endif; ?>
			<div class="clear"></div>
		</div>
	<?php } ?>	

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
			<div class="headline-area">
				<h1 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
			<div class="clear"></div>
			</div>
			
				<?php the_content(); ?>	


				<?php $args = array('before' => '<div class="clear"></div><div class="postpagination"> Pages:', 'after' => '</div><div class="clear"></div>', 'link_before' => '',
							'link_after'       => '', 'next_or_number' => 'number', 'nextpagelink' =>'Next Page', 'previouspagelink' =>'Previous Page', 'pagelink' => '%', 'echo' => 1 ); 
						wp_link_pages( $args ); ?>

		</div>
			<div class="clear"></div>

	<?php endwhile; ?>
				
				<div class="clear"></div>

	<div class="navigation">
		<div class="next-posts"><?php next_post_link('%link &rarr;'); ?></div>
		<div class="prev-posts"><?php previous_post_link('&larr; %link'); ?></div>
	</div>


<?php else : ?>

	<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
		<h1>Not Found</h1>
	</div>

<?php endif; ?>
</div>
<div class="clear"></div>
<?php get_footer(); ?>